package com.xiao.swagerdemo.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * 项目名称：swager-demo
 * 类 名 称：UserVO
 * 类 描 述：TODO
 * 创建时间：2021/03/21 18:38
 * 创 建 人：XiaoCoder
 */
@ApiModel("用户 VO")
public class UserVO implements Serializable {

    @ApiModelProperty(value = "用户编号",required = true,example = "1024")
    private Integer id;
    @ApiModelProperty(value = "账号",required = true,example = "xiaoCoder")
    private String username;

    public Integer getId() {
        return id;
    }

    public UserVO setId(Integer id) {
        this.id = id;
        return this;
    }

    public String getUsername() {
        return username;
    }

    public UserVO setUsername(String username) {
        this.username = username;
        return this;
    }

    @Override
    public String toString() {
        return "UserVO{" +
                "id=" + id +
                ", username='" + username + '\'' +
                '}';
    }
}
